home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
FX286MS.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
3KB
|
90 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_FX286MS( nMaster_Select, nTopRow, nTopCol ) --> NIL
PARAMETERS:
nMaster_Select : Master Select Number (Optional)
nTopRow : Top Left Corner Row of Menu Box (Optional)
nTopCol : Top Left Corner Col of Menu Box (Optional)
SHORT:
Displays and accepts changes to an Epson 286MX/FX print setting box.
DESCRIPTION:
_FX286MS() operates differently, depending upon the parameters it is passed.
If a number is passed in the first parameter (Master Select number), the
number is passed directly on to the printer as an Epson Master Select Print
Code, with no checking of it's value. In this case, the second and third
parameters are not necessary, and are ignored if passed.
Use the Following Table to calculate the number to be used for
nMaster_Select:
Underline 128
Italic 64
Double-Width 32
Double-Strike 16
Emphasized 8
Condensed 4
Proportional 2
Elite (12 CPI) 1
Pica (10 CPI) 0
Simply add together the numbers of the options that you want, and pass the
result as the nMaster_Select parameter, omitting remaining parameters (the
box coordinates) and the printer will be set without displaying the
selection box.
Optionally, you may skip the first parameter and pass only the second and
third. In this case, a menu is given with the top left corner at the
specified points. Selections made from this menu are translated into a valid
Master Select number and passed to the printer as an Epson Master Select
Print Code.
The printer will beep once when exiting the menu to inform you that it
has received the printer setup string.
You can also create an include file to hold the Master Select values:
#define EP_COND 4
#define EP_UNDER 128
#define EP_PICA 0
_FX286(EP_COND)
_FX286(EP_COND+EP_UNDER)
NOTE:
Certain combinations are illegal. Obviously Pica and Elite cannot
be simultaneously selected. Not so obvious, Emphasized can only be
combined with Pica, NOT Elite or Condensed. Illegal values are
simply ignored by the printer.
EXAMPLE:
_FX286() // gives popup and sets printer from options selected
_FX286(144) // should use value passed and set printer
_FX286(128) // Set printer to UnderLine
_FX286(EP_UNDER) // Set printer to UnderLine using your own #define
_FX286(132) // Set printer to UnderLine Condensed
_FX286(4) // Set printer to Condensed only
_FX286(0) // select 10 CPI
******************************************************************************/